# ====================================================================

cmake_minimum_required(VERSION 2.8)

project(PDFToolkit)

# ====================================================================

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/out)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/out)

# ====================================================================

add_subdirectory(libjpeg)

# ====================================================================

include_directories(libjpeg/inc src)

set(EXTRACT_SRC_LIST
    test/extract.cpp
    src/XPDF_wrapper.cpp
    src/XJPEG_wrapper.c
)

add_executable(extract ${EXTRACT_SRC_LIST})
target_link_libraries(extract libjpeg)

# ====================================================================

set(COMBINE_SRC_LIST
    test/combine.cpp
    src/XPDF_wrapper.cpp
    src/XJPEG_wrapper.c
)

add_executable(combine ${COMBINE_SRC_LIST})
target_link_libraries(combine libjpeg)

# ====================================================================
